<include file="Public:searchBar" />
<div class="pageContent">
    <include file="Public:panelBar" />
    <table class="table" width="100%" layouth="112">
        <thead>
            <tr>
                <th>
                    id
                </th>
                <th width="100px">
                    订单号
                </th>
                <th width="120px">
                    商品
                </th>
                <th width="60px">
                    评价 
                </th>
                <th width="100px">
                    会员
                </th>
                <th width="200px">
                    评价内容
                </th>
                <th>
                    状态
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            <volist name="datalist" id="vo">
                <tr id="list_{$vo[$mpk]}" target="sid_<?=$Think.MODULE_NAME ?>" rel="{$vo[$mpk]}">
                    <td>
                        {$vo[$mpk]}<input type="hidden" name='{$mpk}s[]' value="{$vo[$mpk]}"/>
                    </td>
                    <td>
                        <a href="{:U('Orderform/view?'.$mpk.'='.$vo[$mpk])}" title="订单:{$vo[$mpk]}" target="navTab">{$vo.orderform.code}</a>
                    </td>
                    <td>
                        {$vo.good.name}
                    </td>
                    <td>
                        {$sets['comment_type'][$vo['level']]}
                    </td>
                    <td>
                        {$vo.member.username}
                    </td>
                    <td>
                        {$vo.detail|strip_tags|mb_substr=0,30,'utf-8'}
                    </td>
                    <td>
                        {$sets['comment_progress'][$vo['progress']]}
                        |
                        <empty name="vo.reply">
                            未回复<else/>已回复
                        </empty>
                    </td>
                    <td>
                        <a href="{:U('view?'.$mpk.'='.$vo[$mpk])}" class="tbutton" target="navTab">查看</a>
                        <switch name="vo.progress">
                            <case value="1">
                                <a href="{:U('seeable')}" target="ajaxTodo" title="确定要屏蔽此评价吗?" data="{$mpk}={$vo[$mpk]}&seelock=2&navTabId=index{$Think.MODULE_NAME}" class="tbutton">屏蔽</a>
                            </case>
                            <case value="2">
                                <a href="{:U('seeable')}" target="ajaxTodo" title="确定要显示此评价吗?" data="{$mpk}={$vo[$mpk]}&seelock=1&navTabId=index{$Think.MODULE_NAME}" class="tbutton">显示</a>
                            </case>
                            <default/><a href="{:U('seeable')}" target="ajaxTodo" title="确定要审核通过此评价吗?" data="{$mpk}={$vo[$mpk]}&seelock=1&navTabId=index{$Think.MODULE_NAME}" class="tbutton">审核</a>
                        </switch>
                    </td>
                </tr>
            </volist>
        </tbody>
    </table>
    <include file="Public:pageBar" />
</div>